#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/CDStructures.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIView.h>
#import <UIKit/UITable.h>
#import <UIKit/UITableColumn.h>
#import <UIKit/UITableCell.h>
#import <UIKit/UINavigationBar.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTableCell.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UIPreferencesDeleteTableCell.h>
#import <UIKit/UISegmentedControl.h>

#import "ToDoManager.h"
#import "MobileToDoListApplication.h"

@class MobileToDoListApplication;
@class ToDoManager;

@interface ToDoDetailView : UIView {
	UINavigationBar *navBar;
	UITable *table;
	BOOL editMode;
	UITextField *descField;
	
	UIKeyboard *keyboard;
	
	UISegmentedControl *priorityControll;
	
	ToDoManager *toDoManager;
	MobileToDoListApplication *td;
}

- (id)initWithFrame:(struct CGRect)frame;
- (void)reloadTableData;
- (void)setData;
//Delegate Methods
- (void)alertSheet:(UIAlertSheet *)sheet buttonClicked:(int)button;
- (void)navigationBar:(UINavigationBar*)bar buttonClicked:(int)button;
- (void)tableRowSelected:(NSNotification *)notification;


//DataSource Methods
- (int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)table;
- (int)preferencesTable:(UIPreferencesTable *)table numberOfRowsInGroup:(int)group;
- (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group;
- (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForRow:(int)row inGroup:(int)group;
- (float)preferencesTable:(UIPreferencesTable *)aTable heightForRow:(int)row inGroup:(int)group withProposedHeight:(float)proposed;

@end